import { InjectionKey } from 'vue'
import { createStore, Store } from 'vuex'
import base from './modules/base'

export interface State {
  count: number
}

export const key: InjectionKey<Store<State>> = Symbol()

export const store = createStore<State>({
  modules: { base }
})